package com.demo.gateway.engine.function;

import com.alibaba.fastjson2.JSONArray;
import org.springframework.stereotype.Component;

/**
 * @author yzy
 * @date 2024/7/13 下午7:42
 */

@Component
public class JSONParseFunction extends BaseFunction {
    public String toJSONArray(String json) {
        json = null == json ? "empty" : json;
        return JSONArray.of(json).toString();
    }
}
